//------------------------------------------------------------------------------
// Includes 
//------------------------------------------------------------------------------
#include <FrogsEyesAPI.hpp>
#include <Tools/LoggerConsole.hpp> 
#include <Tools/Exceptions.hpp>
#include <OpenCV/highgui.h>
 
//------------------------------------------------------------------------------
// Constantes 
//------------------------------------------------------------------------------
#define CONFIGURATION_PATH "c:\\temp\\configuration.ini"
#define COLOR_PATH "c:\\temp\\color.ini"
int main()
{
	try
	{
		LoadDriver();		
		//CalibrateSystem();
		//SaveCalibration( CONFIGURATION_PATH );
		LoadCalibration( CONFIGURATION_PATH );		
		CalibrateTrackedColor(0);
		SaveTrackedColor(0,COLOR_PATH);
		//LoadTrackedColor(0,COLOR_PATH);
		//CalibrateTrackedColor(1);
		StartTracking();
				
		Tools::ILogger::GetLogger("Console")->Info( "Fin main\n" );
	}
	catch( Tools::Exception e )
	{		
		Tools::ILogger::GetLogger("Console")->Severe( e.what() );	
	}
	return 0;
}
